package org.yzl.designPatterns.visitor.impl;

import org.yzl.designPatterns.visitor.ISubject;
import org.yzl.designPatterns.visitor.IVisitor;

public class SubjectImpl implements ISubject {
    @Override
    public void accept(IVisitor visitor) {
        visitor.visitor(this);
    }

    @Override
    public String getSubject() {
        return "subject!";
    }
}
